<?php
    $account_type  = C('Common.account_type');
    $active_status = C('Common.active_status');
    $sex           = C('Common.sex');
    // 初始化值
    init_input_val(array('account_type','active_status','start_time','end_time','keyword'),$_data);
?>
<body style="width:450px;" class="body_none">
<div class="pop_cont pop_table">
<!--添加用户-->
    <div class="h_a">添加用户</div>
    <form class="J_ajaxForm" data-role="list" action="<?php echo U('Admin/Member/add'); ?>" method="post" >
            <div class="table_full">
              <table width="100%" class="table_form">
                <tr>
                  <th width="100">登录账号：</th>
                  <td><input type="text" name="account" id="account" class="input length_3"></td>
                </tr>
                <tr>
                  <th>登录密码：</th>
                  <td><input type="password" name="password" id="password" class="input length_3"></td>
                </tr>
                <tr>
                  <th>确认密码：</th>
                  <td><input type="password" name="confirm_password" id="confirm_password" class="input length_3"></td>
                </tr>
                <tr>
                  <th>账号区分：</th>
                  <td>
                  <?php foreach($account_type as $key => $val): ?>
                      <input type="radio" name="account_type" value="<?php echo $key; ?>" id="account_type<?php echo $key; ?>">
                      <label for="account_type<?php echo $key; ?>"><span><?php echo $val; ?></span></label>
                  <?php endforeach; ?>
                  </td>
                </tr>
                <tr>
                  <th>账号角色：</th>
                  <td>
                    <?php echo select('role_id',$roles,null,null,array('class'=>'select_2')); ?>
                  </td>
                </tr>
                <tr>
                  <th>账号状态：</th>
                  <td>
                  <?php foreach($active_status as $key => $val): ?>
                      <input type="radio" name="active_status" value="<?php echo $key; ?>" id="active_status<?php echo $key; ?>">
                      <label for="active_status<?php echo $key; ?>"><span><?php echo $val; ?></span></label>
                  <?php endforeach; ?>
                </tr>
                </table>
        </div>
    <div class="pop_bottom">
        <button class="btn fr" id="J_dialog_close" type="button">取消</button>
        <button type="submit" class="btn btn_submit mr10 fr J_ajax_submit_btn">提交</button>
    </div>

    
    </form>
</div>
</body>